home *** CD-ROM | disk | FTP | other *** search
- property spriteNum
- global equal, hotcard, foundation
-
- on beginSprite
- sprite(spriteNum).blend = 0
- end
-
- on mouseEnter
- if the clickOn <> 0 then
- if sprite(the clickOn).moveableSprite = 1 then
- if (the clickOn >= 34) and (the clickOn <= 45) then
- if sprite(spriteNum - 8).visible = 1 then
- if (getlist(the clickOn)[getlist(the clickOn).count].rankvalue = (foundation[makesymbol(spriteNum - 8)].getlastcard().rankvalue - 1)) and (getlist(the clickOn)[getlist(the clickOn).count].suit = foundation[makesymbol(spriteNum - 8)].getlastcard().suit) then
- equal = 1
- hotcard = spriteNum - 8
- end if
- end if
- end if
- end if
- end if
- end
-
- on mouseLeave
- equal = 0
- hotcard = 0
- end
-